<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://beta.mamsy.ru/" />
<title>Проклик_акция</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Проклик_акция</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=logo</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=logo</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=ul.user-block__phones &gt; li</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>1</td>
	<td>p</td>
</tr>
<tr>
	<td>store</td>
	<td>1</td>
	<td>i</td>
</tr>
<tr>
	<td>echo</td>
	<td>${p}</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=all-sale__box${i}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Время до завершения акции</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=content</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=sort</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=span.b-share__text</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=a.logoref</td>
	<td></td>
</tr>
<tr>
	<td>selectAndWait</td>
	<td>id=sort</td>
	<td>label=Цена по возрастанию</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>selectAndWait</td>
	<td>id=sort</td>
	<td>label=Цена по убыванию</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>selectAndWait</td>
	<td>id=sort</td>
	<td>label=По популярности</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='product_listing']/div[${p}]/p/a/img</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
